﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using transferObjects;
using System.Data.SqlClient;
using System.Collections.Generic;
using dao.sqlServer2005;
using dao;

/// <summary>
/// Descripción breve de PrestadorServicioService
/// </summary>
namespace services
{
    public class InformeAccidenteService
    {
        //envia los datos al DB para agregar la empresa
        public int agregarInformeAccidente(InformeAccidente informeaccidente)
        {
            SqlConnection conn = ConnectionManager.getSqlConnection();
            conn.Open();

            //instancia para hacer transacciones a la bd
            InformeAccidenteDB informeAccidenteDB = new InformeAccidenteDB(conn);
            int res = informeAccidenteDB.agregarInformeAccidente(informeaccidente);


            conn.Close();
            return res;
        }

    }
}
